package cn.glenn._04weibo.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegParam {
    @Size(min = 6, max = 12,message = "用户名长度必须再6-12位之间")
    @Schema(description = "用户名",required = true)
    private String username;
    @Schema(description = "密码", required = true)
    private String password;
    @Schema(description = "昵称",required = true)
    private String nickname;
}
